.class public Les/kl0;
.super Ljava/lang/Object;
.source "DevicePlans.java"


# direct methods
.method public static a(Landroid/content/Context;Ljava/lang/String;Lorg/json/JSONObject;Les/zn0;)Les/hl0;
    .locals 8

    const/4 v0, 0x0

    if-eqz p3, :cond_8

    if-eqz p0, :cond_8

    if-nez p2, :cond_0

    goto/16 :goto_1

    .line 1
    :cond_0
    invoke-virtual {p3}, Les/zn0;->R0()Ljava/lang/String;

    move-result-object v1

    .line 2
    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v2

    if-eqz v2, :cond_1

    return-object v0

    .line 3
    :cond_1
    new-instance v2, Ljava/io/File;

    invoke-direct {v2, v1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    const/4 v1, -0x1

    .line 4
    invoke-virtual {p1}, Ljava/lang/String;->hashCode()I

    move-result v3

    const/4 v4, 0x4

    const/4 v5, 0x3

    const/4 v6, 0x2

    const/4 v7, 0x1

    sparse-switch v3, :sswitch_data_0

    goto :goto_0

    :sswitch_0
    const-string v3, "vivo2"

    invoke-virtual {p1, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_2

    const/4 v1, 0x1

    goto :goto_0

    :sswitch_1
    const-string v3, "vivo1"

    invoke-virtual {p1, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_2

    const/4 v1, 0x0

    goto :goto_0

    :sswitch_2
    const-string v3, "oppo2"

    invoke-virtual {p1, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_2

    const/4 v1, 0x3

    goto :goto_0

    :sswitch_3
    const-string v3, "oppo1"

    invoke-virtual {p1, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_2

    const/4 v1, 0x2

    goto :goto_0

    :sswitch_4
    const-string v3, "custom"

    invoke-virtual {p1, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_2

    const/4 v1, 0x4

    :cond_2
    :goto_0
    if-eqz v1, :cond_7

    if-eq v1, v7, :cond_6

    if-eq v1, v6, :cond_5

    if-eq v1, v5, :cond_4

    if-eq v1, v4, :cond_3

    goto :goto_1

    .line 5
    :cond_3
    new-instance v0, Les/jl0;

    invoke-virtual {v2}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object p1

    invoke-direct {v0, p0, p1, p2}, Les/jl0;-><init>(Landroid/content/Context;Ljava/lang/String;Lorg/json/JSONObject;)V

    goto :goto_1

    .line 6
    :cond_4
    new-instance v0, Les/nl0;

    invoke-virtual {v2}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object p1

    invoke-direct {v0, p0, p1}, Les/nl0;-><init>(Landroid/content/Context;Ljava/lang/String;)V

    goto :goto_1

    .line 7
    :cond_5
    new-instance v0, Les/ml0;

    invoke-virtual {v2}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object p1

    invoke-direct {v0, p0, p1}, Les/ml0;-><init>(Landroid/content/Context;Ljava/lang/String;)V

    goto :goto_1

    .line 8
    :cond_6
    new-instance v0, Les/pl0;

    invoke-virtual {v2}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object p1

    invoke-direct {v0, p0, p1}, Les/pl0;-><init>(Landroid/content/Context;Ljava/lang/String;)V

    goto :goto_1

    .line 9
    :cond_7
    new-instance v0, Les/ol0;

    invoke-virtual {p3}, Les/zn0;->U0()Ljava/lang/String;

    move-result-object p1

    invoke-direct {v0, p0, p1}, Les/ol0;-><init>(Landroid/content/Context;Ljava/lang/String;)V

    :cond_8
    :goto_1
    return-object v0

    :sswitch_data_0
    .sparse-switch
        -0x5069748f -> :sswitch_4
        0x650cc91 -> :sswitch_3
        0x650cc92 -> :sswitch_2
        0x6b05905 -> :sswitch_1
        0x6b05906 -> :sswitch_0
    .end sparse-switch
.end method

.method public static a(Landroid/content/Context;Ljava/lang/String;Lorg/json/JSONObject;)Z
    .locals 9

    const/4 v0, 0x0

    if-eqz p0, :cond_8

    if-nez p1, :cond_0

    goto/16 :goto_2

    :cond_0
    const/4 v1, 0x0

    .line 10
    invoke-static {p0}, Lcom/ss/android/socialbase/appdownloader/d;->a(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v2

    .line 11
    invoke-static {v2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v3

    if-eqz v3, :cond_1

    return v0

    :cond_1
    const/4 v3, -0x1

    .line 12
    invoke-virtual {p1}, Ljava/lang/String;->hashCode()I

    move-result v4

    const/4 v5, 0x4

    const/4 v6, 0x3

    const/4 v7, 0x2

    const/4 v8, 0x1

    sparse-switch v4, :sswitch_data_0

    goto :goto_0

    :sswitch_0
    const-string v4, "vivo2"

    invoke-virtual {p1, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_2

    const/4 v3, 0x1

    goto :goto_0

    :sswitch_1
    const-string v4, "vivo1"

    invoke-virtual {p1, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_2

    const/4 v3, 0x0

    goto :goto_0

    :sswitch_2
    const-string v4, "oppo2"

    invoke-virtual {p1, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_2

    const/4 v3, 0x3

    goto :goto_0

    :sswitch_3
    const-string v4, "oppo1"

    invoke-virtual {p1, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_2

    const/4 v3, 0x2

    goto :goto_0

    :sswitch_4
    const-string v4, "custom"

    invoke-virtual {p1, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_2

    const/4 v3, 0x4

    :cond_2
    :goto_0
    if-eqz v3, :cond_7

    if-eq v3, v8, :cond_6

    if-eq v3, v7, :cond_5

    if-eq v3, v6, :cond_4

    if-eq v3, v5, :cond_3

    goto :goto_1

    .line 13
    :cond_3
    new-instance v1, Les/jl0;

    invoke-direct {v1, p0, v2, p2}, Les/jl0;-><init>(Landroid/content/Context;Ljava/lang/String;Lorg/json/JSONObject;)V

    goto :goto_1

    .line 14
    :cond_4
    new-instance v1, Les/nl0;

    invoke-direct {v1, p0, v2}, Les/nl0;-><init>(Landroid/content/Context;Ljava/lang/String;)V

    goto :goto_1

    .line 15
    :cond_5
    new-instance v1, Les/ml0;

    invoke-direct {v1, p0, v2}, Les/ml0;-><init>(Landroid/content/Context;Ljava/lang/String;)V

    goto :goto_1

    .line 16
    :cond_6
    new-instance v1, Les/pl0;

    invoke-direct {v1, p0, v2}, Les/pl0;-><init>(Landroid/content/Context;Ljava/lang/String;)V

    goto :goto_1

    .line 17
    :cond_7
    new-instance v1, Les/ol0;

    invoke-direct {v1, p0, v2}, Les/ol0;-><init>(Landroid/content/Context;Ljava/lang/String;)V

    :goto_1
    if-eqz v1, :cond_8

    .line 18
    invoke-virtual {v1}, Les/hl0;->a()Z

    move-result p0

    if-eqz p0, :cond_8

    const/4 v0, 0x1

    :cond_8
    :goto_2
    return v0

    nop

    :sswitch_data_0
    .sparse-switch
        -0x5069748f -> :sswitch_4
        0x650cc91 -> :sswitch_3
        0x650cc92 -> :sswitch_2
        0x6b05905 -> :sswitch_1
        0x6b05906 -> :sswitch_0
    .end sparse-switch
.end method
